Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@paprika/confirmation
Advanced tools
Confirmation component allows user to confirm or cancel action
yarn add @paprika/confirmation
or with npm:
npm install @paprika/confirmation
Prop | Type | required | default | Description |
---|---|---|---|---|
body | node | false | null | Content of the popover confirmation |
buttonSize | [ Confirmation.types.size.SMALL, Confirmation.types.size.MEDIUM, Confirmation.types.size.LARGE] | false | Confirmation.types.size.MEDIUM | Size of the button |
children | node | false | null | |
confirmButtonType | [ Confirmation.types.kind.PRIMARY, Confirmation.types.kind.DESTRUCTIVE] | false | Confirmation.types.kind.DESTRUCTIVE | Determine the styling of the confirm button |
confirmLabel | string | true | - | Label for the confirm button |
defaultIsOpen | bool | false | false | If the popover is open by default |
heading | string | false | null | Heading for the popover confirmation |
isPending | bool | false | false | If the confirm button should render in a pending state (with a spinner icon) |
onClose | func | false | () => {} | Callback when cancel button is clicked |
onConfirm | func | true | - | Callback when confirm button is clicked |
import Confirmation from "@paprika/confirmation";
<Confirmation
confirmLabel="Delete filter"
body="Lorem ipsum dolor amet vexillologist tacos selvage narwhal butcher twee ethical hot chicken"
onConfirm={handleCloseConfirm => handleConfirm(handleCloseConfirm)}
onClose={handleClose}
heading="Delete filter?">
<Confirmation.TriggerButton>Trigger</Confirmation.TriggerButton>
</Confirmation>
;
or
<Confirmation
confirmLabel="Delete filter"
body="Lorem ipsum dolor amet vexillologist tacos selvage narwhal butcher twee ethical hot chicken"
defaultIsOpen
onConfirm={handleCloseConfirm => handleConfirm(handleCloseConfirm)}
heading="Delete filter?"
/>;
You can use the following components to compose the Confirmation:
<Confirmation.TriggerButton>
FAQs
Confirmation component allows user to confirm or cancel action
The npm package @paprika/confirmation receives a total of 3,509 weekly downloads. As such, @paprika/confirmation popularity was classified as popular.
We found that @paprika/confirmation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.